home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 19
/
CU Amiga Magazine's Super CD-ROM 19 (1998)(EMAP Images)(GB)[!][issue 1998-02].iso
/
CUCD
/
Programming
/
LEDA
/
prog
/
graph
/
strongcomp.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-08-05
|
452b
|
35 lines
#include <LEDA/graph.h>
#include <LEDA/graph_alg.h>
main()
{
GRAPH<int,int> G;
test_graph(G);
node_array<int> compnum(G);
float T;
cout << "STRONG_COMPONENTS ";
cout.flush();
T = used_time();
STRONG_COMPONENTS(G,compnum);
cout << string(" %6.2f sec\n",used_time(T));
newline;
if (Yes("Ausgabe?"))
{ node v;
forall_nodes(v,G)
{ G.print_node(v);
cout << string(" comp = %3d \n", compnum[v]);
}
}
newline;
return 0;
}